import instance from "./require";

//获取表格数据
export let http_getlist = () => {
    return instance.get('/gangwlist')
}

//搜索表格数据
export let search_list = (params: any):any => {
    return instance.get(`/gangwlist`,
        { params: { 'title_like': params.title, 'bianma_like': params.bianma, 'zhuangt': params.zhuangt, } }
    )
}

//添加表格数据
export let add_list = (obj: any) => {
    return instance.post('/gangwlist', obj)
}

//编辑数据
export let update_list = (obj: any): any => {
    return instance.put(`/gangwlist/${obj.id}`, obj)
}

//删除数据
export let del_list = (id: any) => {
    return instance.delete(`/gangwlist/${id}`)
}

